import React from 'react'
import { Text } from 'react-native'
import IconMap from '../../utils/icon'

const IconFont = (props) => (
  <Text style={{fontFamily: 'iconfont', ...props.style}}>
    {IconMap[props.name]}
  </Text>
)

export default IconFont